import request from '@/utils/request'

// 查询光伏电站信息列表
export function listPvStation(query) {
    return request({
        url: '/business/pvStation/list',
        method: 'get',
        params: query
    })
}

// 查询光伏电站信息详细
export function getPvStation(pvId) {
    return request({
        url: '/business/pvStation/getInfoById/' + pvId,
        method: 'get'
    })
}

// 新增光伏电站信息
export function addPvStation(data) {
    return request({
        url: '/business/pvStation/add',
        method: 'post',
        data: data
    })
}

// 修改光伏电站信息
export function updatePvStation(data) {
    return request({
        url: '/business/pvStation/edit',
        method: 'put',
        data: data
    })
}

// 删除光伏电站信息
export function delPvStation(pvId) {
    return request({
        url: '/business/pvStation/remove/' + pvId,
        method: 'delete'
    })
}
// 获取电站信息列表
export function selectPvStationDataToSelect() {
    return request({
        url: '/business/pvStation/selectPvStationDataToSelect',
        method: 'get'
    })
}
// 查询电价信息
export function getPriceListByPvStationId(pvId) {
    return request({
        url: '/business/pvStation/getPriceListByPvStationId/' + pvId,
        method: 'get'
    })
}

